#!/bin/sh
# create a new session
tmux new-session -d -s a  
# split window into 4 parts
tmux split-window -h   # 切割窗口
tmux split-window -v
tmux select-pane -t 0
tmux split-window -v

## others command:
# send command to shell
tmux select-pane -t 0   # 选择0号窗口
tmux send-keys "roslaunch offboard utils_t265_l515_yolo.launch" C-m

tmux select-pane -t 1
tmux send-keys "./testConnection.sh"

tmux select-pane -t 2
tmux send-keys "roslaunch ego_planner run_in_real.launch" 

tmux select-pane -t 3
tmux send-keys "roslaunch offboard traj.launch" 

exit 0
